<?php

declare (strict_types=1);

namespace app\model;


use app\BaseModel;
use think\model\concern\SoftDelete;

class OperationLogModel extends BaseModel
{
    use SoftDelete;

    protected $autoWriteTimestamp = true;
    //软删除
    protected $deleteTime = 'delete_time';
    protected $hidden = ['delete_time', 'update_time'];
    protected $name = 'operation_log';


    
    public function systemUser(){
        return $this->hasOne(SystemUserModel::class,"id","system_user_id");
    }
    public function systemRoles(){
        return $this->hasOne(SystemRolesModel::class,"id","role_id");
    }
    public function systemDept(){
        return $this->hasOne(SystemDeptModel::class,"id","dept_id");
    }


    

}